package com.fowo.api.sys.model;

import com.fowo.api.sys.entity.SysUser;
import com.fowo.api.sys.entity.SysUserPermissionShopinfo;
import com.fowo.api.sys.entity.SysUserPermissionWarehouse;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
public class SysUserVo extends SysUser implements Serializable {

    private String confirmPassword;

    @Schema(title = "角色编号列表")
    private List<Long> roles;

    @Schema(title = "部门编号列表")
    private List<Long> departmentIds;

    @Schema(title = "职位编号列表")
    private List<Long> postsIds;

    @Schema(title = "选中全平台店铺")
    private Boolean selectAllShopinfo;
    @Schema(title = "店铺权限数据")
    List<SysUserPermissionShopinfo> shopinfoList;

    @Schema(title = "选中全平台仓库")
    private Boolean selectAllWarehouse;
    @Schema(title = "仓库权限数据")
    List<SysUserPermissionWarehouse> warehouseList;
}
